define(function(require, exports, module) {
	'use strict';
    
    

    (function () {
        $.widget('rk.wrStoryListCtrl', {
            _create: function () {
                var me = this;
                var elem = me.element;
            },
            _init: function () {
                var me = this;
                var elem = me.element;
                var data = me.options.data;
//            var html = template('template_statistics-storylist', data);
                var $felem = $('<div class="expand_panel_inner"></div>').appendTo(elem);
                $.each(data.feeds, function (i, story) {
                    $('<div class="visited_list"></div>').appendTo($felem)['story']({
                        story: story,
                        users: data.users,
                        groups: data.groups
                    });
                });
                //删掉不必要的空白
                $felem.find('.feed_comefrom').each(function () {
                    var f = $(this);
                    if (f.find('span.action').size() == 0)f.remove();
                })
            }
        });
    })();

});